const inert = require('inert');
const vision = require('vision');
const packageModule = require('package');
const hapiSwagger = require('hapi-swagger');

module.exports = [
  inert,
  vision,
  {
    register: hapiSwagger,
    options: {
      info: {
        title: '接口文档',
        version: packageModule.version
      },
      grouping: 'tags',
      tags: [{
          name: 'Hapi',
          description: 'Hapi'
        },
        {
          name: 'Hello',
          description: 'Hello'
        },
        {
          name: 'shops',
          description: '店铺、商品相关'
        },
        {
          name: 'orders',
          description: '订单相关'
        },
      ],

    }
  }
]